package com.yh.sqlSession;

import java.util.List;

public interface SqlSession {

    //查询所有
    public <E> List<E> selectList(String statementId,Object... params) throws Exception;

    //根据条件查询单个
    public <T> T selectOne(String statementId,Object... params) throws Exception;

    public <T> T getMapper(Class<?> mapperClass);

    int insert(String statementId, Object arg) throws Exception;

    int delete(String statementId, Object arg) throws Exception;

    int update(String statementId, Object arg) throws Exception;
}
